const mongoose =require('mongoose')

const echartsDataSchema =new mongoose.Schema({
    // 用户id
    userId:{
        type:String,
        required:true
    },
    // 类型名字
    typeName:{
        type:String,
        required:true
    },
    //数据
   typeData:{
    type:Object || Array,
    required:true
   }  
})

const EahartsData =mongoose.model('echartsData',echartsDataSchema)

module.exports={
    EahartsData
}